<?php
/*
  功能： 广告位 model
  作者：cxm
  时间：2019-10-23
*/

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class AdvPosition extends BaseModel {
    use SoftDeletes;
    protected $dates = ['deleted_at']; //开启deleted_at
    protected $table='adv_position';  //绑定表
    /**
     * 获取指定字段(全部)
     * @param array $field
     * @return mixed
     */
    public static function getField($field=array()){
        return self::get($field)->toArray();
    }
}